﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1.DesignerPatter.Factory
{
    class Program5
    {
        public static void Main()
        { 
            IFactory factory =new CreateStudent();
            LeiFeng stu = factory.CreateLeiFeng();
            stu.Sweep();
            stu.Wash();

            factory = new CreateVolunteer();
            LeiFeng Vol = factory.CreateLeiFeng();
            Vol.Sweep();
            Vol.Wash();
            Console.WriteLine("over");
            Console.Read();
        }
    }
}
